<?php
namespace Sys\Controller;
use Todo\Controller\BackendController;
use Todo\Service\UserService;

class IndexController extends BackendController {

    /**
     * 后台首页
     */
    public function index(){
        $appList = UserService::getInstance()->getUserApp();
        $this->assign('appList', $appList);
        $this->display();
    }

    /**
     * 头部信息
     */
    public function north(){
        $this->display();
    }

    /**
     * 底部版权
     */
    public function south(){
        $this->display();
    }

    /**
     * 个人信息
     */
    public function profile(){
        $info = $this->_user;
        $this->assign('info', $info);
        $this->display();
    }

    /**
     * 登录之后的头部导航
     */
    public function top(){
        $this->display();
    }
}